/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testing;

import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;

import model.Yudisium;
import view.PanelLihatMahasiswa;

/**
 *
 * @author tashiba
 */
public class TestPanelLihatMahasiswa {

    public static void main(String[] args) {
        ArrayList<Yudisium> test1 = new ArrayList<Yudisium>();
        Yudisium test11 = new Yudisium();
        try {
                test11.setNama("adi");
                test11.setNim("123456789");
                test11.setProdi("TI");
                test11.setPeriode("September");
            } catch (Exception ex) {
                Logger.getLogger(TestPanelLihatMahasiswa.class.getName()).log(Level.SEVERE, null,
                        ex);

            }

//            Anggota test12 = new Anggota();
//            try {
//                test12.setIdAnggota("1234567891");
//                test12.setNama("Struktur Data");
//            } catch (Exception ex) {
//                Logger.getLogger(TestAnggotaTableModel.class.getName()).log(Level.SEVERE, null,
//                        ex);
//            }

            test1.add(test11);
//            test1.add(test12);


//            MahasiswaTabelModel test2 = new MahasiswaTabelModel(test1);
//            System.out.println("nama	:" + test2.getValueAt(0, 0) + "	nim     :" + test2.getValueAt(0, 1)+ " prodi    :" + test2.getValueAt(0, 2));
//            System.out.println("idAnggota	:" + test2.getValueAt(1, 0) + "	nama:" + test2.getValueAt(1, 1));

//        test1.add(test11);
//        test1.add(test12);
        JFrame test = new JFrame();
        PanelLihatMahasiswa ptk = new PanelLihatMahasiswa(test1);
        test.getContentPane().add(ptk);
        test.setSize(350, 250);
        test.setVisible(true);
        test.setTitle("Panel Lihat Publikasi");
    }
}
